Release 10.1A: OpenEdge Development:
Programming Interfaces
Example 2 — reading customer data and writing a TEMP-TABLE
This example is a SAX version of the DOM example described in Chapter 19, "Progress XML Support and the Document Object Model (DOM)," in this book. The example reads an XML file containing the Customer table from the Sports database and writes the data to a temp-table. The example uses qname, assumes there is no namespace prefix, and, for clarity, omits code for transaction scoping and for validation.
Here is the EPI SAX Example 2 driver procedure, i-sax2d.p.
Here is the EPI SAX Example 2 XML file, i-sax2.xml.
Note: There is no DTD or XML schema and no use of namespace prefixes. The lack of a DTD or XML schema means that the handlers need to validate the document, but the example omits that validation for the sake of clarity.
Here is the EPI SAX Example 2 handler procedure, i-sax2h.p (1 of 3).
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |